import RootHome from '../pages/home/index' 
import Login from '../pages/Login'
import About from '../pages/About'

// 二级路由
import Homes from '../pages/home/Home'
import My from '../pages/home/My'
import Car from '../pages/home/Car'

export default [
    {
        path: "/home",
        component: RootHome,
        children: [
            {
                path: "/home/homes",
                component: Homes
            },
            {
                path: "/home/my",
                component: My,
                auth: true
            },
            {
                path: "/home/car",
                component: Car,
                auth: true
            }
        ]
    },
    {
        path: "/login",
        component: Login
    },
    {
        path: "/about",
        component: About,
        // 需要拦截
        // auth: true
    }
]